<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    /**
     *
     * js中的对象
     * 1.通过new Object()创建对象
     * 2.通过{}创建对象
     */
    var student = new Object();
    student.name = "张三";
    student.age = 18;
    student.sex = "男";
    console.log(student);
    console.log('--------------------------------------------------')

    var person = {
        'name': '张三',
        'age': 12,
        'sex': '男'
    }
    console.log(person)
</script>
</html>